﻿<ul class="pagination">
    @if (Model["Lastest"].PrevPage != null)
    {
        <li class="page-item">

            <a class="page-link" asp-route-page="@Model["Lastest"].PrevPage" aria-label="Previous">
                <span aria-hidden="true">&laquo;</span>
            </a>

        </li>
    }
    @for (var i = Model["Lastest"].Start; i <= Model["Lastest"].End; i++)
    {
        @*var result = i == Model["Lastest"].CurrentPage;*@


        <li class="page-item @(i == Model["Lastest"].CurrentPage?"active":"")">
            <a class="page-link" asp-route-page="@i">@i</a>
        </li>
    }
    @if (Model["Lastest"].NextPage != null)
    {
        <li class="page-item">
            <a class="page-link" asp-route-page="@Model["Lastest"].NextPage" aria-label="Next">
                <span aria-hidden="true">&raquo;</span>
            </a>
        </li>
    }
</ul>